package com.waimai.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import com.waimai.model.Restaurant;
@Repository("restaurantdao")
public interface RestaurantDao {
	@Select(value="${sql}")
	@Results(value={
		@Result(property="mName",column="name"),
		@Result(property="mSaleList",column="salelist"),
		@Result(property="mHrefUrl",column="hrefurl"),
		@Result(property="mDrinkList",column="drinklist"),
		@Result(property="mCompany",column="company"),
		@Result(property="mMaxBack",column="maxback"),
		@Result(property="mStatus",column="status"),
		@Result(property="mMinusRatio",column="minusratio"),
		@Result(property="mImgUrl",column="imgurl"),
		@Result(property="mTotalPerMon",column="totalpermon"),
		@Result(property="mSendTime",column="sendtime"),
		@Result(property="mStartPrice",column="StartPrice"),
		@Result(property="mSendPrice",column="SendPrice"),
	})
	public List<Restaurant> getAllRestaurant(@Param(value="sql") String sql);
	/**
	 * 餐厅实体
	 * 
	 * @author comingundone
	 * 
	 * @param mName
	 *            餐厅名称
	 * @param mSaleList
	 *            满减列表
	 * @param mHrefUrl
	 *            餐厅链接Url
	 * @param mDrinkList
	 *            饮料列表
	 * @param mCompany
	 *            公司
	 * @param mMaxBack
	 *            最高红包
	 * @param mStatus
	 *            餐厅状态
	 * @param mMinusRatio
	 *            减满比
	 * @param mImgUrl
	 *            餐厅图标Url
	 * @param mTotalPerMon
	 *            月售份数
	 * 
	 * 
	 */
}
